import { Routes, RouterModule }  from '@angular/router';
import {MonitorComponent} from "./monitor.component";
const routes:Routes = [
  {
    path: '',
    component: MonitorComponent,
    children:[
      { path: 'single/:name',  loadChildren: './single/single.module#SingleModule' },
      { path: 'gis',  loadChildren: './gis/gis.module#GisModule' },
      { path: 'group',  loadChildren: './group/group.module#GroupModule' },
      { path: 'customize',  loadChildren: './customize/customize.module#CustomizeModule' }
    ]
  }
];

export const MonitorRoute = RouterModule.forChild(routes);
